import request from '@/utils/request'

// 查询答案列表
export function listPaperQuestion(query) {
  return request({
    url: '/answer/paperQuestion/list',
    method: 'get',
    params: query
  })
}

// 查询答案详细
export function getPaperQuestion(id) {
  return request({
    url: '/answer/paperQuestion/' + id,
    method: 'get'
  })
}

// 新增答案
export function addPaperQuestion(data) {
  return request({
    url: '/answer/paperQuestion',
    method: 'post',
    data: data
  })
}

// 修改答案
export function updatePaperQuestion(data) {
  return request({
    url: '/answer/paperQuestion',
    method: 'put',
    data: data
  })
}

// 删除答案
export function delPaperQuestion(id) {
  return request({
    url: '/answer/paperQuestion/' + id,
    method: 'delete'
  })
}
